*{
    margin: 0;
    padding: 0;
}

html, body{
    height: 100%;
    color: #ccc;
    font-family: Helvetica, Tahoma, Arial, STXihei, "华文细黑", "Microsoft YaHei", "微软雅黑", SimSun, "宋体", Heiti, "黑体", sans-serif;
}

::-webkit-scrollbar {     
    background-color: #1e1e1e;
    width: 12px;
}

::-webkit-scrollbar-thumb {
    background:  #1e1e1e;
}

::-webkit-scrollbar-thumb:hover {
    background:  #383838
}

#wrapper{
    display: grid;
    grid-template-columns: 50px 600px auto;
    grid-template-rows: 70% 30%;
    height: 100%;
}

#menu-section{
    display: table-cell;
    background:  #333;
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 1;
    grid-row-end: 3;
    height: 100%;
}

#menu-section ul{
    margin-top: 16px;
    list-style: none;
}

#menu-section ul li{
    margin: 0 14px 20px 14px;
    position: relative;
}

#menu-section ul li i{
    font-size: 20px;
    color:gray;
}

#menu-section ul li i:hover{
    color:white;
}

#menu-section ul .selected_menu{
    color:white;
}

#menu-section ul li .menu-title{
    position: absolute;
    left: 25px;
    font-size: 0.8rem;
    color: white;
    top: 0;   
    background-color: rgba(81,154,168,0.8);
    width: 40px;
    height: 18px;
    padding: 2px 10px;
    border-radius: 2px;
    display: none;
    z-index: 2;
}

#menu-section ul li .menu-title::after{
    content: "";
    position: absolute;
    left: -10px;
    top: 4px;
    border: 5px solid;
    border-color: transparent rgba(81,154,168,0.8) transparent transparent;
    height: 0;
    width: 0;
    z-index: 2;
}

#menu-section ul li:hover .menu-title{
    display: block;
}

#list-section{
    display: table-cell;
    background: #252525;
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 1;
    grid-row-end: 3;
    height: 100%;
    overflow-y: auto;
}

#list-section .content-wrapper{
    display: grid;
    grid-template-columns: 60px auto 32px;
    grid-template-rows: auto auto auto;
    padding: 16px 12px;
}

#list-section .content-wrapper:hover{
    background: #1e1e1e;
}

#list-section .selected-content-wrapper{
    background: #1e1e1e;
}

#list-section .content-wrapper+.content-wrapper{
    border-top: 1px solid #1e1e1e;
}

#list-section .content-wrapper .user-ico-wrapper{
    display: table-cell;
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 1;
    grid-row-end: 4; 
}

#list-section .content-wrapper .user-ico-wrapper img{
    border-radius: 5px;
}

#list-section .content-wrapper .user-name-wrapper{
    display: table-cell;
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 1;
    grid-row-end: 2;
    line-height: 1;   
    color: #CE9178;
    margin-bottom: 6px;
}

#list-section .content-wrapper .text-wrapper{
    display: table-cell;
    grid-column-start: 2;
    grid-column-end: 4;
    grid-row-start: 2;
    grid-row-end: 3;
    font-size: 0.9rem;
    line-height: 1.5;
}

#list-section .content-wrapper .text-wrapper .user{
    color: #519ABA;
}

#list-section .content-wrapper .text-wrapper .tag{
    color: #519ABA;
}

#list-section .content-wrapper .text-wrapper a{
    text-decoration: none;
    color: #519ABA;
}

#list-section .content-wrapper .time-wrapper{
    display: table-cell;
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 3;
    grid-row-end: 4;
    font-size: 0.8rem;
    color: gray;
    margin-top: 6px;
}

#list-section .content-wrapper .time-wrapper .comment-count{
    margin-left: 10px;
}

#list-section .content-wrapper .no-wrapper{
    display: table-cell;
    grid-column-start: 3;
    grid-column-end: 4;
    grid-row-start: 3;
    grid-row-end: 4;
    margin-top: 6px;
    text-align: right;
}

#list-section .content-wrapper .no-wrapper .no{
    color: #519ABA;
}

#comment-section{
    display: table-cell;
    background: #1e1e1e;
    grid-column-start: 3;
    grid-column-end: 4;
    grid-row-start: 1;
    grid-row-end: 2;
    height: 100%;
    overflow-y: auto;
}

#comment-section .comment{
    display: grid;
    grid-template-columns: 40px auto 32px;
    grid-template-rows: auto auto auto;
    margin-left: 5px;
    padding: 8px 0 4px 0;
}

#comment-section .comment +.comment{
    border-top: 1px solid  rgb(56, 56, 56);
}

#comment-section .comment:first-child{
    margin-top: 16px;
    padding-top: 0;
}

#comment-section .comment .ico{
    display: table-cell;
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 1;
    grid-row-end: 4;
}

#comment-section .comment .ico img{
    width: 32px;
    height: 32px;
    border-radius: 3px;
}

#comment-section .comment .name{
    display: table-cell;
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 1;
    grid-row-end: 2;
    line-height: 1;
    color: #CE9178;
}

#comment-section .comment .content{
    display: table-cell;
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 2;
    grid-row-end: 3;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 5px 0;
}

#comment-section .comment .content .aboutme{
    color: #519ABA;
}

#comment-section .commentbackground{
    background-image: url('../files/teacher.jpg');
    height: 100%;
    background-size:cover;
    opacity: 0.05;
}

#comment-section .comment .time{
    display: table-cell;
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 3;
    grid-row-end: 4;
    line-height: 1;
    font-size: 0.8rem;
    color: gray;
}

#comment-section .comment .no{
    display: table-cell;
    grid-column-start: 3;
    grid-column-end: 4;
    grid-row-start: 3;
    grid-row-end: 4;
    text-align: right;    
    margin-right: 10px;
    line-height: 1;
    color: #519ABA;
}

#comment-section .comment .user{
    color: #519ABA;
}

#comment-section .comment .tag{
    color: #519ABA;
}

#comment-section .comment a{
    text-decoration: none;
    color: #519ABA;
}

#terminal-section{
    background: #1e1e1e;
    grid-column-start: 3;
    grid-column-end: 4;
    grid-row-start: 2;
    grid-row-end: 3;
    border-top: 1px solid gray;
    padding: 12px;
    font-size: 0.8rem;
}

#terminal-section .cmd-line{
    display: grid;
    grid-template-columns: 20px auto;
}

#terminal-section .prompt-wrapper{
    display: table-cell;
    grid-column-start: 1;
    grid-column-end: 2;
}

#terminal-section .prompt{
    color: #CE9178;
    margin-right: 2px; 
}

#terminal-section input{
    display: table-cell;
    grid-column-start: 2;
    grid-column-end: 3;
}

#terminal-section input{
    width: 100%;
    border: none;
    background: #1e1e1e;
    color: #ccc;
    outline: none;
}
